# -*- coding: utf-8 -*-
"""
 @Time    : 2021/2/4 下午4:40
 @Author  : tgy
 
"""


def test01(val):
    try:
        # res = 1 / val
        raise IndexError('index error')
    except Exception as e:
        ...
        import sys
        print(sys.exc_info()[0:2])


if __name__ == '__main__':
    ...
    test01(0)
